A theory-based action planning toolkit